<%--
    Document   : add_warehouse
    Created on : Nov 6, 2009, 4:23:47 AM
    Author     : moustafa
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Edit Warehouse</title>
    </head>
    <body onload="setTimeout('document.getElementById(\'message\').innerHTML=\'<br/>\'', 2500)">
        <%
            request.getSession().setAttribute("warehouse_id", request.getParameter("warehouse_id"));
            String message = (String)request.getSession(false).getAttribute("added_message");
            request.getSession(false).setAttribute("added_message", null);
        %>
        <p align="center" style="color:green" id="message"><%=message != null ? message : "<br/>"%></p>

        <form action="../admin/editwarehouse">
        <table border="1" cellspacing="1" cellpadding="1">
            <tbody>
                <tr>
                    <td>Warehouse Name: </td>
                    <td><input type="text" name="warehouse_name" value="<%=request.getParameter("warehouse_name")%>" /></td>
                </tr>
                <tr>
                    <td>Warehouse Location: </td>
                    <td><input type="text" name="warehouse_location" value="<%=request.getParameter("warehouse_location")%>" /></td>
                </tr>
            </tbody>
        </table>
            <input type="submit" value="Update Warehouse" />
        </form>
        <form action="../admin/warehouses">
            <input type="submit" value="Go Back"/>
        </form>
    </body>
</html>
